From 82b86c2c1c2b2f2548354429d378d1ee2dd70d81 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 17 Sep 2017 16:56:55 -0400 Subject: [PATCH] Drop the aliasing api for style properties This was added to deprecate style properties. All deprecated style properties are gone now, so this is no longer needed. --- gtk/gtkstyleproperty.c | 20 -------------------- gtk/gtkstylepropertyprivate.h | 3 --- 2 files changed, 23 deletions(-) diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c index fd49943a25..18fc425768 100644 --- a/gtk/gtkstyleproperty.c +++ b/gtk/gtkstyleproperty.c @@ -202,26 +202,6 @@ _gtk_style_property_init_properties (void) _gtk_css_shorthand_property_init_properties (); } -void -_gtk_style_property_add_alias (const gchar *name, - const gchar *alias) -{ - GtkStylePropertyClass *klass; - GtkStyleProperty *property; - - g_return_if_fail (name != NULL); - g_return_if_fail (alias != NULL); - - klass = g_type_class_peek (GTK_TYPE_STYLE_PROPERTY); - - property = g_hash_table_lookup (klass->properties, name); - - g_assert (property != NULL); - g_assert (g_hash_table_lookup (klass->properties, alias) == NULL); - - g_hash_table_insert (klass->properties, (gpointer)alias, property); -} - /** * _gtk_style_property_lookup: * @name: name of the property to lookup diff --git a/gtk/gtkstylepropertyprivate.h b/gtk/gtkstylepropertyprivate.h index c6ef1f8a04..5bd5a2cdf0 100644 --- a/gtk/gtkstylepropertyprivate.h +++ b/gtk/gtkstylepropertyprivate.h @@ -63,9 +63,6 @@ GType _gtk_style_property_get_type (void) G_GNUC_CONST void _gtk_style_property_init_properties (void); -void _gtk_style_property_add_alias (const gchar *name, - const gchar *alias); - GtkStyleProperty * _gtk_style_property_lookup (const char *name); const char * _gtk_style_property_get_name (GtkStyleProperty *property); -- 2.30.2